<div class="outertight">
<ul class="block">
<?php
$current_year = date('Y');
$current_month = date('m');

            $args = array( 'posts_per_page'=>'3', 'tag' =>'เพลงไทย', 'year'=>$current_year, 'monthnum'=>$current_month, 'orderby' => 'rand' );
            query_posts( $args ); ?>
            
             <?php if (have_posts()) : ?>
        <?php $count=0; while (have_posts()) : the_post(); 
        	?>
		<?php $values = get_post_custom_values("featured-images-m");?>
		<li>
		<table>
		<tr>
		<td>
		<?php  if ( is_array($values)) : ?>
			<a href='<?php the_permalink() ?>' title='<?php the_title(); ?>'> <img alt='<?php the_title(); ?>' src='<?php echo"$values[0]";?>' width="140px" height="90px" /></a>
			<?php else:?>
								<a href='<?php the_permalink() ?>'
								title='<?php the_title(); ?>'> <img alt='<?php the_title(); ?>'
									src="<?php bloginfo('template_directory'); ?>/images/no_img_m.png" width="140px" height="90px" /></a>
			
					<?php endif;?>
		
		</td>
		<td>
		
		<p>
				<span><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> </a></span> 
			</p> 
			<span><?php the_ratings(); ?></span>
	
		</td>
		</tr>
		</table>
		</li>
		<?php endwhile; ?>
        <?php endif;   wp_reset_query();?>
	</ul>
</div>
<div class="outertight">
<ul class="block">
<?php


            $args = array( 'posts_per_page'=>'3', 'tag' =>'เพลงไทย', 'year'=>$current_year, 'monthnum'=>$current_month);
            query_posts( $args ); ?>
            
             <?php if (have_posts()) : ?>
        <?php $count=0; while (have_posts()) : the_post(); 
        	?>
		<?php $values = get_post_custom_values("featured-images-m");?>
		<li>
		<table>
		<tr>
		<td>
		<?php  if ( is_array($values)) : ?>
			<a href='<?php the_permalink() ?>' title='<?php the_title(); ?>'> <img alt='<?php the_title(); ?>' src='<?php echo"$values[0]";?>' width="140px" height="90px" /></a>
			<?php else:?>
								<a href='<?php the_permalink() ?>'
								title='<?php the_title(); ?>'> <img alt='<?php the_title(); ?>'
									src="<?php bloginfo('template_directory'); ?>/images/no_img_m.png" width="140px" height="90px" /></a>
			
					<?php endif;?>
		
		</td>
		<td>
		
		<p>
				<span><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> </a></span> 
			</p> 
			<span><?php the_ratings(); ?></span>
	
		</td>
		</tr>
		</table>
		</li>
		<?php endwhile; ?>
        <?php endif;   wp_reset_query();?>
	</ul>
</div>